package shuaige.jdk.函数式接口.取两个值并产生一个新值reduce_BiFunction;

import shuaige.jdk.model.Person;

import java.util.function.BiFunction;

/**
 * BiFunction 接口可以规定传入的两个参数类型和返回参数的类型
 */
public class BiFunction具体实现 {

    public static BiFunction<Integer, Person, Integer> biFunction = new BiFunction<>() {
        @Override
        public Integer apply(Integer o, Person o2) {
            return o + o2.getAge();
        }
    };

    public static void main(String[] args) {

    }


}
